<div id="main">
<div id="prducts-list">
<?php if(isset($products) && count($products) > 0): ?>
<?php foreach($products as $product): ?>
	<div id="pro-txt">
		<div id="pro-img">
			<a href="<?php echo base_url("products/item/".$product->language_relation); ?>"><img src="<?php echo $product->image; ?>" width="95" height="95" /></a>
		</div>
		<span style="font-weight: 600;"><a href="<?php echo base_url("products/item/".$product->language_relation); ?>"><?php echo $product->title; ?></a></span><br />

		<?php echo $product->description; ?>
	</div>
<?php endforeach; ?>
<?php echo $pagination; ?>
<?php elseif (isset($item)): ?>
	<div id="img">
		<div id="detail-img">
			<a href="<?php echo base_url("files/uploaded/".$item->image); ?>"><img src="<?php echo $item->thumb; ?>" width="260px"
				height="260px" style="border: none;" /> </a>
		</div>
		<div id="download">
			<?php if(isset($item->file)): ?>
			<a href="<?php echo base_url("files/uploaded/".$item->file); ?>"><div id="brochure"></div></a>
			<?php endif; ?>
			<a href="<?php echo base_url("pages/registerProduct"); ?>"><div id="factor"></div></a>
		</div>
	</div>
	<div id="product-detail">
		<span style="font-weight: bold; font-size: 13px;">نام محصول: </span><?php echo $item->title; ?><br />
		<?php echo $item->specification; ?>
	</div>
	<?php else: ?>
	<div style="margin: 30px;">هیچ محصولی برای نمایش یافت نشد.</div>
<?php endif; ?>
</div>
</div>